Optimal. Leaf size=137 \[ -\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{3 e^2 (d+e x)^2 (2 c d-b e)}-\frac {2 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2} (-3 b e g+4 c d g+2 c e f)}{3 e^2 (d+e x) (2 c d-b e)^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 137, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {792, 650} \begin {gather*} -\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{3 e^2 (d+e x)^2 (2 c d-b e)}-\frac {2 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2} (-3 b e g+4 c d g+2 c e f)}{3 e^2 (d+e x) (2 c d-b e)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 650
Rule 792
Rubi steps
\begin {align*} \int \frac {f+g x}{(d+e x)^2 \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx &=-\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{3 e^2 (2 c d-b e) (d+e x)^2}+\frac {(2 c e f+4 c d g-3 b e g) \int \frac {1}{(d+e x) \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx}{3 e (2 c d-b e)}\\ &=-\frac {2 (e f-d g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{3 e^2 (2 c d-b e) (d+e x)^2}-\frac {2 (2 c e f+4 c d g-3 b e g) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}{3 e^2 (2 c d-b e)^2 (d+e x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 89, normalized size = 0.65 \begin {gather*} -\frac {2 \sqrt {(d+e x) (c (d-e x)-b e)} \left (2 c \left (d^2 g+2 d e (f+g x)+e^2 f x\right )-b e (2 d g+e (f+3 g x))\right )}{3 e^2 (d+e x)^2 (b e-2 c d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.06, size = 105, normalized size = 0.77 \begin {gather*} -\frac {2 \sqrt {-b d e-b e^2 x+c d^2-c e^2 x^2} \left (-2 b d e g-b e^2 f-3 b e^2 g x+2 c d^2 g+4 c d e f+4 c d e g x+2 c e^2 f x\right )}{3 e^2 (d+e x)^2 (b e-2 c d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.44, size = 182, normalized size = 1.33 \begin {gather*} -\frac {2 \, \sqrt {-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e} {\left ({\left (4 \, c d e - b e^{2}\right )} f + 2 \, {\left (c d^{2} - b d e\right )} g + {\left (2 \, c e^{2} f + {\left (4 \, c d e - 3 \, b e^{2}\right )} g\right )} x\right )}}{3 \, {\left (4 \, c^{2} d^{4} e^{2} - 4 \, b c d^{3} e^{3} + b^{2} d^{2} e^{4} + {\left (4 \, c^{2} d^{2} e^{4} - 4 \, b c d e^{5} + b^{2} e^{6}\right )} x^{2} + 2 \, {\left (4 \, c^{2} d^{3} e^{3} - 4 \, b c d^{2} e^{4} + b^{2} d e^{5}\right )} x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \mathit {sage}_{0} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 127, normalized size = 0.93 \begin {gather*} -\frac {2 \left (c e x +b e -c d \right ) \left (3 b \,e^{2} g x -4 c d e g x -2 c \,e^{2} f x +2 b d e g +b \,e^{2} f -2 c \,d^{2} g -4 c d e f \right )}{3 \left (e x +d \right ) \left (b^{2} e^{2}-4 b c d e +4 c^{2} d^{2}\right ) \sqrt {-c \,e^{2} x^{2}-b \,e^{2} x -b d e +c \,d^{2}}\, e^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.79, size = 101, normalized size = 0.74 \begin {gather*} -\frac {2\,\sqrt {c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x}\,\left (2\,c\,d^2\,g-b\,e^2\,f-3\,b\,e^2\,g\,x+2\,c\,e^2\,f\,x-2\,b\,d\,e\,g+4\,c\,d\,e\,f+4\,c\,d\,e\,g\,x\right )}{3\,e^2\,{\left (b\,e-2\,c\,d\right )}^2\,{\left (d+e\,x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {f + g x}{\sqrt {- \left (d + e x\right ) \left (b e - c d + c e x\right )} \left (d + e x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________